package com.echat.messagesender.sender.sms.bean;

import lombok.Getter;
import lombok.Setter;
import org.apache.http.util.Asserts;

/**
 * Created by xiaoyu on 2016/2/1.
 * 深圳市欣易辰短信平台配置
 */
@Getter
@Setter
public class SmsWayConfig extends BaseSmsConfig{
    private String apiBaseUrl;
    private String enterpriseID;
    private String loginName;
    private String password;


    /**
     * 检查字段是否非空
     */
    public void check(){
        Asserts.notEmpty(this.apiBaseUrl,"SmsWayConfig[apiBaseUrl]");
        Asserts.notEmpty(this.enterpriseID,"SmsWayConfig[enterpriseID]");
        Asserts.notEmpty(this.loginName,"SmsWayConfig[loginName]");
        Asserts.notEmpty(this.password,"SmsWayConfig[password]");
    }
}
